package com.esoon.dao;

import com.esoon.entity.MyPhoneArea;
import com.esoon.entity.ThirdpartyPhoneArea;
import com.esoon.entity.ThirdpartyPhoneAreaExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface ThirdpartyPhoneAreaDao {
    long countByExample(ThirdpartyPhoneAreaExample example);

    int deleteByExample(ThirdpartyPhoneAreaExample example);

    int deleteByPrimaryKey(Integer paId);

    int insert(ThirdpartyPhoneArea record);

    int insertSelective(ThirdpartyPhoneArea record);

    List<ThirdpartyPhoneArea> selectByExample(ThirdpartyPhoneAreaExample example);

    ThirdpartyPhoneArea selectByPrimaryKey(Integer paId);

    int updateByExampleSelective(@Param("record") ThirdpartyPhoneArea record, @Param("example") ThirdpartyPhoneAreaExample example);

    int updateByExample(@Param("record") ThirdpartyPhoneArea record, @Param("example") ThirdpartyPhoneAreaExample example);

    int updateByPrimaryKeySelective(ThirdpartyPhoneArea record);

    int updateByPrimaryKey(ThirdpartyPhoneArea record);

     String selectByPhoneNumber(String phone,String tenantCode);

    MyPhoneArea selectArea(String phone,String tenantCode);
}